package test;


import java.util.Scanner;
//字符串的分隔
public class topic17 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            String st1 = scanner.nextLine();
            String st2 = scanner.nextLine();

            if (st1.length() % 8 != 0){
                st1 = st1 + "00000000";
            }

            while (st1.length()>=8){
                System.out.println(st1.substring(0,8));
                st1 = st1.substring(8);}

            if (st2.length() % 8 != 0){
                st2 = st2 + "00000000";
            }

            while (st2.length()>=8){
                System.out.println(st2.substring(0,8));
                st2 = st2.substring(8);
            }
        }
    }
}
